<?php die;?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>miceCMS,觅策企业网站管理系统</title>
<link href="css/default.css" rel="stylesheet" type="text/css">
<link href="css/table.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/table.js"></script>
<script type="text/javascript" src="js/selectall.js"></script>
</head>

<body>
<table width="99%" align="center" border="0" cellpadding="0" cellspacing="0">
  <tr align="center">
	<td height="5"></td>
  </tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
	<form action="<!--{$index}-->" method="post">
	<tr > 
		<td bgcolor="#F9F9F9" height="30" valign='middle'>
			&nbsp;&nbsp;分类&nbsp;<select name='categoryid' id='categoryid'>
								<option value='0'>全部</option>
								<!--{section name=cn loop=$categoryname}-->
									<option value='<!--{$categoryname[cn].id}-->' <!--{if $categoryname[cn].id==$categoryid}-->selected<!--{/if}-->><!--{$categoryname[cn].title}--></option>
								<!--{/section}-->
							  </select>&nbsp;作者&nbsp;<select name='userid' id='userid'>
								<option value='0'>全部</option>
								<!--{foreach from=$userrs item=urs}-->
									<option value='<!--{$urs->getUserId()}-->' <!--{if $urs->getUserId()==$userid}-->selected<!--{/if}-->><!--{$urs->getLoginname()}--></option>
								<!--{/foreach}-->
							  </select>&nbsp;关键字&nbsp;<input name='keywords' id='keywords' type="text" size="20" value="<!--{$keywords}-->" onblur="if(this.value=='') this.value='标题或正文中的部分文字';" onfocus="if(this.value=='标题或正文中的部分文字') this.value='';">&nbsp;每页显示条数&nbsp;<select name='pages' id='pages'>
								<option value='10' <!--{if 10==$pages}-->selected<!--{/if}-->>10</option>
								<option value='20' <!--{if 20==$pages or 0>=$pages}-->selected<!--{/if}-->>20</option>
								<option value='30' <!--{if 30==$pages}-->selected<!--{/if}-->>30</option>
								<option value='50' <!--{if 50==$pages}-->selected<!--{/if}-->>50</option>
								<option value='100' <!--{if 100==$pages}-->selected<!--{/if}-->>10</option>						
							  </select>&nbsp;<select name='orders' id='orders'>
									<option value='cd' <!--{if $orders eq "cd"}-->selected<!--{/if}-->>撰写时间降序</option>		
									<option value='ca' <!--{if $orders eq "ca"}-->selected<!--{/if}-->>撰写时间升序</option>		
									<option value='bd' <!--{if $orders eq "bd"}-->selected<!--{/if}-->>点击量降序</option>
									<option value='ba' <!--{if $orders eq "ba"}-->selected<!--{/if}-->>点击量升序</option>
							  </select>&nbsp;&nbsp;<input type="submit" value="查 找">
		</td>
	</tr>
	</form>
</table>
<table width="99%" align="center" border="0" cellpadding="0" cellspacing="0">
  <tr align="center">
	<td height="5"></td>
  </tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#BEBEBE" onmouseover="changeto()"  onmouseout="changeback()">
  <form action="<!--{$delete}-->" method="post" name="miceform" id="miceform">
  <tr align="center">
	<td width="3%" height="24" background="imgs/right-title-bg.gif"></td>
    <td width="3%" height="24" background="imgs/right-title-bg.gif"></td>
    <td width="32%" height="24" background="imgs/right-title-bg.gif">产品标题</td>
	<td width="12%" height="24" background="imgs/right-title-bg.gif">分类</td>
    <td width="6%" height="24" background="imgs/right-title-bg.gif">作者</td>
    <td width="14%" height="24" background="imgs/right-title-bg.gif">撰写时间</td>
	<td width="4%" height="24" background="imgs/right-title-bg.gif">显示</td>
	<td width="4%" height="24" background="imgs/right-title-bg.gif">点击</td>
    <td width="12%" height="24" background="imgs/right-title-bg.gif">操作</td>
  </tr>
  <!--{foreach from=$results item=rs name=counter}-->
  <tr align="center">
	<td width="3%" class="tablecontent"><!--{$smarty.foreach.counter.iteration}--></td>
    <td width="3%" class="tablecontent"><input name="checkbox[<!--{$rs->getArticleId()}-->]" id="checkbox[<!--{$rs->getArticleId()}-->]" type="checkbox" value="<!--{$rs->getArticleId()}-->" /></td>
    <td width="32%" class="tablecontent"><div align="left">&nbsp;&nbsp;<!--{$rs->getTitle()}--></div></td>
	<td width="12%" class="tablecontent"><!--{'micefun'|CategoryName:$rs->getCategoryId()}--></td>
    <td width="6%" class="tablecontent"><!--{assign   var=uid   value=$rs->getUserId()}--><!--{$username[$uid]}--></td>
    <td width="14%" class="tablecontent"><!--{'micefun'|Num2Time:$rs->getCreatedat()}--></td>
	<td width="4%" class="tablecontent"><!--{if 0 eq $rs->getIsvisible()}-->是<!--{else}--><font color='red'>否</font><!--{/if}--></td>
	<td width="4%" class="tablecontent"><!--{$rs->getBrowses()}--></td>
    <td width="12%" class="tablecontent"><a href="<!--{$edit}--><!--{$rs->getArticleId()}-->">编辑</a>|<a href="<!--{$preview}--><!--{'micefun'|CategoryId:$rs->getCategoryId()}-->/<!--{$rs->getArticleId()}-->" target="_blank">预览</a>|<a href="<!--{$delete}--><!--{$rs->getArticleId()}-->" onclick="JavaScript:return confirm('确定删除吗?')">删除</a></td>
  </tr>
  <!--{/foreach}-->
</table>
<table width="99%" align="center" border="0" cellpadding="0" cellspacing="0">
  <tr align="center">
	<td height="5"></td>
  </tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
	<tr > 
		<td bgcolor="#F9F9F9" height="30" valign='middle'>
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr > 
					<td bgcolor="#F9F9F9" height="30" valign='middle' width='30%'>
						&nbsp;&nbsp;<input name='chkAll' type='checkbox' id='chkAll' onclick='CheckAll(this.form)' value='checkbox'>全选&nbsp;<input type="submit" value="删除[D]" accesskey="d"/>&nbsp;<input type="button" value="添加[C]" accesskey="c" onclick="javascript:window.location.href='<!--{$create}-->'" />
					</td>
					<td bgcolor="#F9F9F9" height="30" valign='middle' align='right' width='70%'>
						<!--{$pager}-->&nbsp;&nbsp;
					</td>
				</tr>
			</table>
		</td>
	</tr>
	</form>
</table>
<br>
</body>
</html>


